package com.wayhome.srpingbootmybatis.fileimportmanager.bo;

import com.wayhome.srpingbootmybatis.fileimportmanager.dto.ImportFileDTO;
import com.wayhome.srpingbootmybatis.fileimportmanager.dto.ImportFileRlstDTO;
import org.springframework.web.multipart.MultipartFile;

import java.io.UnsupportedEncodingException;

public interface ImportFileHandler {

    /**
     * 解析上传的文件
     * @param request 请求参数
     */
    ImportFileRlstDTO doReadImportFile(ImportFileDTO request) throws Exception;

    void downloadImportFile(String fileName, String filePath, String newFileName) throws Exception;

    /**
     * 下载模版文件
     */
    void downloadTemplate() throws Exception;

}
